# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('server', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ServerType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
                ('is_delete', models.BooleanField(default=False)),
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('update_time', models.DateTimeField(auto_now=True)),
                ('type', models.CharField(max_length=20, verbose_name='项目类型')),
                ('img', models.ImageField(verbose_name='项目图片', upload_to='server')),
            ],
            options={
                'verbose_name': '预约项目',
                'verbose_name_plural': '预约项目',
            },
        ),
        migrations.RemoveField(
            model_name='serverorder',
            name='server',
        ),
        migrations.DeleteModel(
            name='Server',
        ),
        migrations.AddField(
            model_name='serverorder',
            name='order_type',
            field=models.ForeignKey(to='server.ServerType', default=1, verbose_name='预约项目'),
            preserve_default=False,
        ),
    ]
